/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.entity.dspace;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author z.ciok@poltman.com
 */
@Entity
@Table(name="handle")
public class HandleEntity  implements Serializable {
	
	private static final long serialVersionUID = -6024129046645910364L;

	public HandleEntity() { }

	@Id
    @SequenceGenerator(name="handle_seq", sequenceName="handle_seq")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="handle_seq") 
    @Column(name="handle_id")
    private Integer handleId;

    @Column(name="handle")
    private String handle;
    
    @Column(name="resource_type_id")
    private Integer resourceTypeId;
    
    @Column(name="resource_id")
    private Integer resourceId;

	public Integer getHandleId() {
		return handleId;
	}
	public void setHandleId(Integer handleId) {
		this.handleId = handleId;
	}

	public String getHandle() {
		return handle;
	}
	public void setHandle(String handle) {
		this.handle = handle;
	}

	public Integer getResourceTypeId() {
		return resourceTypeId;
	}
	public void setResourceTypeId(Integer resourceTypeId) {
		this.resourceTypeId = resourceTypeId;
	}

	public Integer getResourceId() {
		return resourceId;
	}
	public void setResourceId(Integer resourceId) {
		this.resourceId = resourceId;
	}
}
